package com.alibaba.serverless.common.exception.framework;

import com.alibaba.serverless.common.dto.ErrorCodeI;

/**
 * @author 朱永杰
 */
public abstract class BaseException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private ErrorCodeI errCode;

    public BaseException(String errMessage){
        super(errMessage);
    }

    public BaseException(String errMessage, Throwable e) {
        super(errMessage, e);
    }

    public ErrorCodeI getErrCode() {
        return errCode;
    }

    public void setErrCode(ErrorCodeI errCode) {
        this.errCode = errCode;
    }

}
